<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Pulog.Models.Post>>" %><?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="../../Content/Themes/imShawn/Site.css"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" 
    xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" 
    xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel xmlns:cfi="http://www.microsoft.com/schemas/rss/core/2005/internal" cfi:lastdownloaderror="None">
    <title cf:type="text"><%=Helper.BlogName %></title>
    <link><%=Helper.BlogURL %></link>
    <description cf:type="text"><%=Helper.BlogDescription %></description>
    <%foreach (Pulog.Models.Post p in Model) { %>
        <item>
            <title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" cf:type="text">
                <%= Html.Encode(p.title) %> </title>
            <link><%=Helper.BlogURL %>/Posts/Show/<%= p.postID%> </link>
            <pubDate><%= p.pubTime %> </pubDate>
            <author><%= p.User.userName %> </author>
            <description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" cf:type="html">
                <%= Html.Encode(p.content) %>
            </description>
        </item>
    <% } %>
    </channel>
</rss>